﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MyLibrary;
using log4net;

namespace MyForm
{
    public partial class Form1 : Form
    {
        private readonly ILog _log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                AppCore.LogForm.Info("Change the Form Title");
                Text = new Hello().GetHello();
                throw new Exception("an exception");
            }
            catch (Exception ex)
            {
                _log.Error(ex);
            }
        }
    }
}
